package com.zhehekeji.opsys.api.plugin.wechat.rsp;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @ClassName ImageTextRsp
 * @Description 微信图文回复
 * @author chenweiliu chenwei.liu@163.com
 * @date 2017-4-24   下午12:40:40
 */
@XmlRootElement(name="xml")
public class ImageTextRsp implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6810236576045575828L;
	private String toUserName;
	private String fromUserName;
	private Long createTime;
	private String msgType = "news";
	private Integer articleCount;
	private Article[] articles;
	@XmlElement(name="ToUserName")
	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}
	@XmlElement(name="FromUserName")
	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	@XmlElement(name="CreateTime")
	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	@XmlElement(name="MsgType")
	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	@XmlElement(name="ArticleCount")
	public Integer getArticleCount() {
		return articleCount;
	}


	public void setArticleCount(Integer articleCount) {
		this.articleCount = articleCount;
	}

	@XmlElement(name="Articles")
	public Article[] getArticles() {
		return articles;
	}


	public void setArticles(Article[] articles) {
		this.articles = articles;
	}

	@XmlRootElement(name="item")
	public static class Article implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = -119880370582975604L;
		private String title;
		private String description;
		private String picUrl;
		private String url;
		@XmlElement(name="Title")
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		@XmlElement(name="Description")
		public String getDescription() {
			return description;
		}
		public void setDescription(String description) {
			this.description = description;
		}
		@XmlElement(name="PicUrl")
		public String getPicUrl() {
			return picUrl;
		}
		public void setPicUrl(String picUrl) {
			this.picUrl = picUrl;
		}
		@XmlElement(name="Url")
		public String getUrl() {
			return url;
		}
		public void setUrl(String url) {
			this.url = url;
		}
	}
}

